//
//  WXTestViewController.swift
//  WXWeiBo
//
//  Created by Angel-xin on 2016/09/19.
//  Copyright © 2016年 Angel-xin. All rights reserved.
//

import UIKit

// 测试进入的视图控制器
class WXTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor.white
        
        addNavRightButton()
    }

    private func addNavRightButton() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
        
    }
    
    // 点击事件
    func pushAction() {
        let testVC = WXTestViewController()
        navigationController?.pushViewController(testVC, animated: true)
        
    }

}
